<?php $this->load->view('shared/_handler') ?>
<link href="<?php echo styleJquery() ?>" rel="stylesheet"/>
<div style="width: 500px;">
    <form method="post" action="<?php echo base_url() ?>usuario/salvarsenha">
        <div class="input-group">
            <span class="input-group-addon">Senha Antiga</span>
            <input type="password" name="ip_old_senha" class="form-control"  required="true" onchange="resetdiv('.old')">
            <span class="old"><?php if(isset($old)){echo "<div class='alert-danger'>$old</div>";}?></span>     
        </div><br/>
        <div class="input-group">
            <span class="input-group-addon">Senha</span>
            <input type="password" name="ip_senha" class="form-control"  required="true" onchange="resetdiv('.new')">
            <span class="new"><?php if(isset($new)){echo "<div class='alert-danger'>$new</div>";}?></span>
        </div><br/>
        <div class="input-group">
            <span class="input-group-addon">Confirmar a Senha</span>
            <input type="password" name="ip_confirma_senha" class="form-control"  required="true" onchange="resetdiv('.conf')">
            <span class="conf"><?php if(isset($new_confirma)){echo "<div class='alert-danger'>$new_confirma</div>";}?></span>
        </div><br/>
        <input type="submit" class="btn btn-default" value="Alterar">
    </form>
</div>
<script type="text/javascript" src="<?php echo javaScriptApplicationValidation() ?>"></script>
<?php $this->load->view('shared/_footer');